﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using SimpleBlog.Mvc;

namespace SimpleBlog.ViewModels
{
    public class CommentCreateViewModel
    {
        [Required]
        [Display(Name = "Name")]
        [StringLength(100)]
        public string CommentName { get; set; }

        [Required]
        [Display(Name = "Email")]
        [StringLength(150)]
        [EmailAddress]
        public string CommentEmail { get; set; }

        [Required]
        [Display(Name = "Comment")]
        [DataType(DataType.MultilineText)]
        [StringLength(4096)]
        public string CommentText { get; set; }

        public int CommentPostId { get; set; }
    }
}